import request from "@/utils/request";
import { queryParams } from '@/utils/utils'

export const getOrdersList = ({ page, tab, limit, title, category_id }) => {
    let r = queryParams({ tab, limit, title, category_id })
    return request({
        url: `/order/${page}${r}`,
        method: "get",
    });
};


// 删除
export const delOrders = (ids) => {
    ids = Array.isArray(ids) ? ids : [ids]
    return request({
        url: `/order/delete_all`,
        method: "POST",
        data: {
            ids
        }
    });
};